// api/user.js
import http from '@/utils/request'

// 登陆
export const login = (data) => {
  return http.post('/auth/login', data)
}

// 获取用户信息
export const getUserInfo = () => {
  return http.get('/user/info')
}

export const updateUserInfo = (data) => {
  return http.put('/user/info', data)
}